package cn.chenwx.bbsforum.service;

import cn.chenwx.bbsforum.entity.Article;
import cn.chenwx.bbsforum.utils.BlogJSONResult;

import java.util.List;

public interface ArticleService {

    List<Article> findAllArticle(int rows, int pageNum);

    Article findArticleById(int id);

    int addArticle (Article article);

    int updateArticle(Article article);

    BlogJSONResult deleteArticle(int id);

    int getArticle();

    List<Article> findArticleByTag(String tag, int rows,int pageNum);

    Article findArticleByUserId(Integer id);
    List<Article> findAllArticles();

    int getArticleNum();
}
